﻿@model Icoders.MarketTracker.Core.MasterData.User

@{
    ViewBag.Title = "Edit";
}

<h2>Edit</h2>

<p>
    Use the form below to Change Password. 
</p>
<p>
    Passwords are required to be a minimum of @Membership.MinRequiredPasswordLength characters in length.
</p>

<script src="@Url.Content("~/Scripts/jquery.validate.min.js")" type="text/javascript"></script>
<script src="@Url.Content("~/Scripts/jquery.validate.unobtrusive.min.js")" type="text/javascript"></script>

@using (Html.BeginForm()) {
    @Html.ValidationSummary(true)
    <fieldset>
        <legend>User</legend>
         @Html.HiddenFor(model => model.Id)
         <div class="editor-label">
        <p style="float:right" > </p>
            @Html.Label("New Password")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.Password)
            @Html.ValidationMessageFor(model => model.Password)
        </div>


         <div class="editor-label">
        <p style="float:right" > </p>
            @Html.Label("Confirm New Password")
        </div>
        <div class="editor-field">
            @Html.EditorFor(model => model.ConfirmPassword)
            @Html.ValidationMessageFor(model => model.ConfirmPassword)
        </div>

        <p>
            <input type="submit" value="Save" />
        </p>
    </fieldset>
}

<div>
    @Html.ActionLink("Back to List", "Index")
</div>
